package com.android.lovingpet.signup.view;

import android.os.Build;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.annotation.RequiresApi;
import android.support.v4.app.FragmentActivity;
import android.util.Log;

import com.android.lovingpet.R;
import com.android.lovingpet.signup.ILoginContract;
import com.android.lovingpet.signup.LoginInPresenter;

public class LoginInActivity extends FragmentActivity {

    private LoginInPresenter presenter = new LoginInPresenter();

    @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // android 7.0系统解决拍照的问题
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());
        builder.detectFileUriExposure();
        setContentView(R.layout.activity_login_in);
        //状态栏沉浸
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction().add(R.id.login_in_count, new LoginInContentfragment()).commit();
        }
    }

    public LoginInPresenter getPresenter() {
        return presenter;
    }
}
